package com.ruibang.glass.equipment.mapper.device;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruibang.glass.equipment.domain.req.DeviceStaticsReq;
import com.ruibang.glass.equipment.domain.req.device.DeviceAllPageReq;
import com.ruibang.glass.equipment.domain.req.device.HazardAccountReq;
import com.ruibang.glass.equipment.dto.HazardLineStaticsDTO;
import com.ruibang.glass.equipment.dto.HazardStaticsDTO;
import com.ruibang.glass.equipment.entity.device.HazardAccount;
import com.teaming.cloud.framework2.autoconfigure.mybatisplus.mapper.CommonMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


@Mapper
public interface HazardAccountMapper extends CommonMapper<HazardAccount> {

    IPage<HazardAccount> queryHazardAccount(Page<HazardAccount> page, @Param("accountReq") HazardAccountReq hazardAccountReq);

    List<HazardStaticsDTO> getHazardStaticsDTO(@Param("deviceStaticsReq") DeviceStaticsReq deviceStaticsReq);

    List<HazardLineStaticsDTO> getHazardLineStaticsDTO(@Param("deviceStaticsReq") DeviceStaticsReq deviceStaticsReq, @Param("ids") List<String>ids);
}
